package com.example.cv.service;

import com.example.cv.model.Admin;
import com.example.cv.model.Employer;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 周杰
 */
@Transactional(rollbackFor = Exception.class)
public interface AdminService {
    /**
     * description:管理员查询
     * @param admin
     * @return：com.example.cv.model.Admin
     */
    Admin findAdmin(Admin admin);

    boolean deleteCandidateByCId(int c_id);

    boolean deleteEmployerByEId(int e_id);

    boolean updateAdmin(Admin admin);

    Admin findAdminById(int a_id);
    
    List<Employer> findEmployersByEName(String e_name);

    List<Employer> findAllEmployers();
}
